package com.wgy.day12.Scanner键盘输入;

import java.util.Scanner;

/**
 * Created by pc on 2020/11/7 22:34
 * Description: LearningJava
 */
public class Demo02ScannerSum {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int a=sc.nextInt();
        System.out.println("请输入第二个数字");
        int b=sc.nextInt();
        int result=a+b;

        System.out.println("结果是"+result);


    }
}
